package com.example.myapplication

import com.example.myapplication.extensions.hex
import com.example.myapplication.ui.FileBean.Companion.STATE_NET_FLAG
import org.junit.Test

import org.junit.Assert.*
import kotlin.math.roundToInt

class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        val aa  =13221186
        val size = 10*1024*1024
        println(size)
        println(Math.ceil((aa.toDouble() / size)))
        println((aa.toDouble() / size).roundToInt())
        val value = "asdasd"
        val hex = value.toByteArray().hex()
        println(hex)
        val bb  = "${STATE_NET_FLAG}121212"  ;
        println(bb.substringAfter(STATE_NET_FLAG))
    }
    @Test
    fun addition_isCorrect2() {
        val bb  = "${STATE_NET_FLAG}121212"  ;
        println(bb.substringAfter(STATE_NET_FLAG))
    }
}